package com.bayes.teamshow.dao;

import com.bayes.teamshow.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface UserRegi extends JpaRepository<User,String> {

    public User findByNameAndPasswd(String name, String passwd);

    public User findByName(String name);

    public List<User> findAll();


    @Query("select name from User u where u.name=:name")
    public String jia(String name);

}
